﻿using B.T.BasicData.ErrorCode;
using B.T.BasicData.Write_Api.DTO;

namespace B.T.BasicData.Write_Api.RBAC.IServices
{
    public interface IUserServices
    {
        /// <summary>
        /// 添加用户信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ApiResult> AddUserinfo(AddUserinfoDto dto);

        /// <summary>
        /// 删除用户信息（软删除）
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <returns>操作结果</returns>
        Task<ApiResult> DeleteUser(long userId);

        /// <summary>
        /// 编辑用户信息
        /// </summary>
        /// <param name="dto">用户信息编辑DTO</param>
        /// <returns>操作结果</returns>
        Task<ApiResult> UpdateUserinfo(UpdateUserinfoDto dto);
    }
}
